package org.jsrml.core.base.qo;

import org.jsrml.common.persistence.BaseQO;
import org.jsrml.common.persistence.query.QueryCondition;
import org.jsrml.common.persistence.query.QueryConditionType;
import org.jsrml.common.persistence.query.QueryConfig;

@SuppressWarnings("serial")
@QueryConfig(daoBeanId = "resourceService")
public class ResourceQO extends BaseQO<String> {

	@QueryCondition(name = "name", type=QueryConditionType.LIKE_ANYWHERE)
	private String name;

	private Boolean nameLike = false;

	@QueryCondition(name = "parentId")
	private String parentId;

	@QueryCondition(name = "url")
	private String url;

	@QueryCondition(name= "system")
	private String system;
	
	public String getName() {
		return name;
	}

	public void setName(String name) {
		this.name = name;
	}

	public Boolean getNameLike() {
		return nameLike;
	}

	public void setNameLike(Boolean nameLike) {
		this.nameLike = nameLike;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}

	public String getParentId() {
		return parentId;
	}

	public void setParentId(String parentId) {
		this.parentId = parentId;
	}

	public String getSystem() {
		return system;
	}

	public void setSystem(String system) {
		this.system = system;
	}

}
